from fastapi import APIRouter
from .main import router as main_router
from .admin import router as admin_router
from .website_config import router as website_config_router
from .contacts import router as contacts_router
from .link_categories import router as link_categories_router
from .links import router as links_router
from .tags import router as tags_router
from .titles import router as titles_router
from .search_engines import router as search_engines_router
from .static_pages import router as static_pages_router

# 创建主路由
api_router = APIRouter()

# 包含各个子路由
api_router.include_router(main_router, tags=["main"])
api_router.include_router(admin_router, prefix="/admin", tags=["admin"])
api_router.include_router(website_config_router, prefix="/admin", tags=["website-config"])
api_router.include_router(contacts_router, prefix="/admin", tags=["contacts"])
api_router.include_router(link_categories_router, prefix="/admin", tags=["link-categories"])
api_router.include_router(links_router, prefix="/admin", tags=["links"])
api_router.include_router(tags_router, prefix="/admin", tags=["tags"])
api_router.include_router(titles_router, prefix="/admin", tags=["titles"])
api_router.include_router(search_engines_router, prefix="/admin", tags=["search-engines"])
api_router.include_router(static_pages_router, prefix="/admin", tags=["static-pages"])